package ru.dadle8.model.db;

import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

@Document(collection = "users")
@Data
public class DbUser {

    @Id
    private ObjectId id;
    private String name;

    private TelegramProfile telegramProfile;
    private ClientProfile userProfile;
    private TrainerProfile trainerProfile;

    private List<Integer> role; // 0 - админ, 1 - тренер, 2 - клиент
}
